﻿<%include file="header.tpl"/>

<div class="wrapper lineT">
  <div class="mainBox">
    <div class="main">
<%include file="leftside.tpl"/>
      <div class="dedeCenter" id="personal">
	<div class="fangle">
          <dl class="artList mL10 mR10">
			<form action="" method="post">
				<table style="width: 100%" class="edittable">
				<tr>
					  <th colspan="2" class="formtitle">发表文章</th>
					</tr>
					<tr>
						<td>标题</td>
						<td><input name="title" type="text" style="width: 600px" value="${dairies.title}" /></td>
					</tr>
					<tr>
						<td>正文</td>
						<td><textarea name="content" class="xheditor {tools:'mfull',skin:'nostyle',urlType:'rel'}" style="width: 600px; height:400px">${dairies.content}</textarea></td>
					</tr>
					<tr>
						<td>网址</td>
						<td><input name="url" type="text" style="width: 600px" value="${dairies.url}"/></td>
					</tr>
					<tr>
						<td>分类</td>
						<td><select name="category" style="width: 120px">
						%for cate in categories:
						%if cmp(dairies.category, cate.category) == 0:
						<option selected="selected">${cate.category}</option>
						%else:
						<option>${cate.category}</option>
						%endif
						%endfor
						</select> 新建分类<input name="new_category" type="text" maxlength="10" /></td>
					</tr>
					<tr>
						<td>标签</td>
						<td><input name="tag" type="text" style="width: 600px" value="${tag}"/></td>
					</tr>
					<tr>
						<td>摘要</td>
						<td><textarea name="brief" style="width: 600px; height:150px" class="xheditor-simple {skin:'nostyle'}">${dairies.briefview}</textarea></td>
					</tr>
					<tr>
						<td>&nbsp;</td>
						<td>&nbsp;</td>
					</tr>
					<tr>
						<td><input name="save" type="submit" value="保存" /></td>
						<td><input name="post" type="submit" value="发布" /></td>
					</tr>
				</table>
			</form>

        </div>
      </div>
      <div class="clear"></div>
    </div>
<%include file="rightside.tpl"/>
  </div>
</div>
<%include file="footer.tpl"/>



